import { createSlice } from '@reduxjs/toolkit';

const paperSlice = createSlice({
  name: 'paper',
  initialState: {
    score: 1,
  },
  reducers: {
    setScore(state, action) {
      state.score = action.payload;
    },
  },
});

export const { setScore } = paperSlice.actions;
export default paperSlice.reducer;
